package android.pfc;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.pfc.R;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class PrincipalActivity extends Activity {

 
    @Override
    public void onCreate(Bundle savedInstanceState) {

    	super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button historico = (Button) findViewById(R.id.historico_);
        historico.setOnClickListener(new OnClickListener() {
                @Override
				public void onClick(View v) {
                        Intent myWebLink = new Intent(android.content.Intent.ACTION_VIEW);
                        myWebLink.setData(Uri.parse("http://www.google.es"));
                        startActivity(myWebLink);
                  }
                });
        
        Button producto = (Button) findViewById(R.id.producto_);
        producto.setOnClickListener(new OnClickListener() {
                @Override
				public void onClick(View v) {
                        Intent myWebLink = new Intent(android.content.Intent.ACTION_VIEW);
                        myWebLink.setData(Uri.parse("http://www.google.es"));
                        startActivity(myWebLink);
                  }
                });
        
        Button scan = (Button) findViewById(R.id.scan_);
        scan.setOnClickListener(new OnClickListener() {
                @Override
				public void onClick(View v) {
                        Intent myWebLink = new Intent(android.content.Intent.ACTION_VIEW);
                        myWebLink.setData(Uri.parse("http://www.google.es"));
                        startActivity(myWebLink);
                  }
                });
 
    }


}
